package com.wuzhi.shop.member.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.wuzhi.common.utils.PageUtils;
import com.wuzhi.shop.member.entity.MemberEntity;
import com.wuzhi.shop.member.exception.PhoneExistException;
import com.wuzhi.shop.member.exception.UserNameExistException;
import com.wuzhi.shop.member.vo.MemberLoginVo;
import com.wuzhi.shop.member.vo.MemberRegisterVo;

import java.util.Map;

/**
 * @author gonglize
 * @email 2567007734@gmail.com
 * @date 2022-03-10 10:24:37
 */
public interface MemberService extends IService<MemberEntity> {

    PageUtils queryPage(Map<String, Object> params);

    void register(MemberRegisterVo vo);

    void checkPhoneUnique(String phone) throws PhoneExistException;
    void checkUserNameUnique(String username) throws UserNameExistException;

    MemberEntity login(MemberLoginVo vo);
}

